import httpInstance from "@/utils/http";

/**
 * 不带参数示列
 * @returns {*}
 */
export function getCategoryAPI(){
    return httpInstance({
        method: "get",
        url: "/home/category/head"
    })
}

/**
 * 带参数示列
 * @param id
 * @param type
 * @param limit 默认值 3
 * @returns {*}
 */
export const getHotGoodsAPI = ({ id, type, limit = 3 }) => {
    return httpInstance({
        url:'/',
        params:{
            id,
            type,
            limit
        }
    })
}